export const searchFormPart1 = [
    {
        type: 'rangePicker',
        key: 'originPaidDay',
        label: '支付时间',
        props: {}
    },
    {
        type: 'select',
        key: 'subjectNameLvl1',
        label: '学部',
        optionsConfig: {
            options: [],
            pager: {}
        },
        props: {
            mode: 'multiple'
        }
    },
    // {
    //     type: 'select',
    //     key: 'employeeArea',
    //     label: '辅导老师所在大区',
    //     optionsConfig: {
    //         options: [],
    //         pager: {}
    //     },
    //     props: {
    //         mode: 'multiple'
    //     }
    // },
    {
        type: 'select',
        key: 'subjectNameLvl2',
        // 被依赖项；用于改变时，清空控制项
        // controlItems: [],
        label: '年级',
        optionsConfig: {
            options: [],
            pager: {}
        },
        props: {
            mode: 'multiple'
        }
    },
    {
        type: 'select',
        key: 'employeeCity',
        label: '运营中心',
        optionsConfig: {
            options: [],
            pager: {}
        },
        props: {
            mode: 'multiple'
        }
    }
];

export const searchFormPart2 = [
    {
        type: 'select',
        key: 'periodName',
        label: '期名',
        optionsConfig: {
            options: [],
            pager: {}
        },
        props: {
            mode: 'multiple'
        },
        span: 12
    },
    {
        type: 'select',
        key: 'clazzTypeAll',
        label: '班级类型',
        optionsConfig: {
            options: [],
            pager: {}
        },
        props: {
            mode: 'multiple'
        },
        span: 12
    },
    {
        type: 'select',
        key: 'employeeCity',
        label: '运营中心',
        optionsConfig: {
            options: [],
            pager: {}
        },
        props: {
            mode: 'multiple'
        },
        span: 12
    }
];

// 每个页面里细分了模块，一个模块是一个看板
export const dashBoardList1 = [
    {
        dashboardName: 'generalViewPartOne',
        dashboardId: 'generalViewPartOne'
    },
    {
        dashboardName: 'generalViewPartTwo',
        dashboardId: 'generalViewPartTwo'
    },
    {
        dashboardName: 'generalViewPartThree',
        dashboardId: 'generalViewPartThree'
    },
    {
        dashboardName: 'generalViewPartFour',
        dashboardId: 'generalViewPartFour'
    },
    {
        dashboardName: 'generalViewPartFive',
        dashboardId: 'generalViewPartFive'
    }
];

export const dashBoardList2 = [
    {
        dashboardName: 'generalViewPartSix',
        dashboardId: 'generalViewPartSix'
    }
];

// 页面id
export const pageId = {
    part1: {
        id: 'incomeDashboard',
        title: '收入看板',
        selectID: 'selectUnit_3'
    },
    part2: {
        id: 'transFormIncomeDashboard',
        title: '流量转化看板',
        selectID: 'selectUnit_4'
    }
};

// 纬度id由页面id 和 纬度key拼接成, 小驼峰
export const getDimensionId = (index, searchKey) => {
    if (searchKey) {
        const newSearchKey =
            searchKey.slice(0, 1).toUpperCase() + searchKey.slice(1);

        return pageId[index].id + newSearchKey;
    }
    return '';
};
